package com.doudizu.shoesonline.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.doudizu.shoesonline.model.dto.order.OrderDTO;
import com.doudizu.shoesonline.model.dto.order.OrderQuery;
import com.doudizu.shoesonline.model.entity.OrderDetail;
import com.doudizu.shoesonline.model.entity.Orders;

import java.util.List;

/**
* 
* @description 针对表【orders(订单)】的数据库操作Service
* @createDate 2023-07-03 10:14:50
*/
public interface OrdersService extends IService<Orders> {

    /**
     * 根据status获取所有订单
     * @return
     */
    Object getOrdersVOs(OrderQuery orderQuery);

    /**
     * 提交订单
     * @param orderDTO
     */
    List<OrderDetail> submit(OrderDTO orderDTO);

    Object getOrders(Integer pageNum, Integer pageSize,Integer status);

    Object getOrderDetails(String id);
}
